package com.jiuli.liping.dao;

import com.jiuli.liping.vo.*;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * Author zyl
 * Date  2020-05-18
 */
@Component
@Mapper
public interface CommodityDao {

    public Commodity get(String id);

    public List<Commodity> findList(Commodity commodity);

    public List<Commodity> findAllList();

    public int insert(Commodity commodity);

    public int insertBatch(List<Commodity> commoditys);

    public int update(Commodity commodity);

    public int delete(Commodity commodity);

    List<Provider> findAllListByProvider(String commodityNumber);

    List<Property> findAllListByProperty(String commodityNumber);

    List<Photograph> findAllListByPhotograph(String commodityNumber);

    int insertProperty(List<Property> propertyList);

    int insertProvider(List<Provider> providerList);

    int insertPhotograph(List<Photograph> photographList);

    int selectCommodity(Commodity commodity);

    List<Classification> selectAllList();

    List<Property> findPropertyByid(int id);

    List<Classification> selectAllCommodityList();

    List<Classification> selectAllCommoditySy();

    Commodity selectOneCommodity(Commodity commodity);

    int updateAmount(Commodity commodity2);

    List<Classification> getProductByName(Commodity commodity);

    List<Commodity> removeArgan1(String commodityFatherNumber);
    List<Commodity> removeArgan2(String commodityFatherNumber);
    List<Commodity> removeArgan3(String commodityFatherNumber);
    List<Commodity> removeArgan4(String commodityFatherNumber);
    List<Commodity> removeArgan5(String commodityFatherNumber);
    List<Commodity> removeArgan6(String commodityFatherNumber);
    List<Commodity> removeArgan7(String commodityFatherNumber);
    List<Commodity> removeArgan8(String commodityFatherNumber);
    List<Commodity> removeArgan9(String commodityFatherNumber);
    List<Commodity> removeArgan10(String commodityFatherNumber);

    String findMinPrice(String commodityFatherNumber);

    List<Commodity> selectCommodityByFatherNumber(Commodity commodity);

    List<Photograph> findPictureUrl(Commodity commodity);

    int jyProductStatus(String fbk1);
}